﻿using System;
using Colorful.Furniture.IEntity;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.ErpOrderManagement;

/// <summary>
/// 充值订单日志表
/// </summary>
[Table(Name = "erp_recharge_order_log")]
public class RechargeOrderLog : AuditAggregateRoot
{
    /// <summary>
    /// 编码
    /// </summary>
    [Column(Name = "id", IsPrimary = true)]
    public Guid Id { get; set; }

    /// <summary>
    /// 订单编码
    /// </summary>
    [Column(Name = "order_id")]
    public Guid? OrderId { get; set; }

    /// <summary>
    /// 平台订单号
    /// </summary>
    [Column(Name = "order_no", StringLength = 60)]
    public string OrderNo { get; set; }

    /// <summary>
    /// 供应商Id
    /// </summary>
    [Column(Name = "supplier_id")]
    public Guid? SupplierId { get; set; }

    /// <summary>
    /// 供应商成本单价
    /// </summary>
    [Column(Name = "supplier_price", Scale = 4, Precision = 16)]
    public decimal? SupplierPrice { get; set; }

    /// <summary>
    /// 给供应商下单个数
    /// </summary>
    [Column(Name = "supplier_submit_number")]
    public int? SupplierSubmitNumber { get; set; }

    /// <summary>
    ///  提交订单时刻的商品换算比例
    /// </summary>
    [Column(Name = "supplier_qty")]
    public int? SupplierQty { get; set; }

    /// <summary>
    /// 供应商成本合计金额
    /// </summary>
    [Column(Name = "supplier_total_price", Scale = 4, Precision = 16)]
    public decimal? SupplierTotalPrice { get; set; }

    /// <summary>
    /// 供应商商品代码
    /// </summary>
    [Column(Name = "supplier_product_no")]
    public string SupplierProductNo { get; set; }

    /// <summary>
    /// 供应商商品名称
    /// </summary>
    [Column(Name = "supplier_product_name")]
    public string SupplierProductName { get; set; }

    /// <summary>
    /// 供应商订单编号
    /// </summary>
    [Column(Name = "supplier_order_no")]
    public string SupplierOrderNo { get; set; }

    /// <summary>
    ///  备注
    /// </summary>
    [Column(Name = "remark", StringLength = 600)]
    public string Remark { get; set; }

}

